package org.lsj.service.impl;

import org.lsj.entity.Province;
import org.lsj.mapper.ProvinceMapper;
import org.lsj.service.ProvinceService;
import org.springframework.stereotype.Service;

import java.util.List;
/**
 * @Author: Laishijin
 * @Email Lai_shijin@163.com
 * @Date: 2021/12/24 17:07
 */
@Service
public class ProvinceServiceImpl implements ProvinceService {
    private ProvinceMapper provinceMapper;
//    进行注入
    public ProvinceServiceImpl(ProvinceMapper provinceMapper) {
        this.provinceMapper = provinceMapper;
    }
    //    获取登记总人数
    @Override
    public int getTotalPeople() {
        return provinceMapper.getTotalPeople();
    }
    //    获取有确诊人数
    @Override
    public int getConfirmedPeople() {
        return provinceMapper.getConfirmedPeople();
    }
    //    获取无症状人数
    @Override
    public int getAsymptomaticPeople() {
        return provinceMapper.getAsymptomaticPeople();
    }
    //    获取有症状人数
    @Override
    public int getSymptomaticPeople() {
        return provinceMapper.getSymptomaticPeople();
    }
    //    获取疑似病例
    @Override
    public int getSuspectedPeople() {
        return provinceMapper.getSuspectedPeople();
    }
    //    获取治愈病例
    @Override
    public int getCurePeople() {
        return provinceMapper.getCurePeople();
    }
    //    获取重症病例
    @Override
    public int getSeverePeople() {
        return provinceMapper.getSeverePeople();
    }
    //    获取死亡病例
    @Override
    public int getDeathsPeople() {
        return provinceMapper.getDeathsPeople();
    }
    //    获取省份总病例
    @Override
    public List<Province> getAllProvincePeople() {
        return provinceMapper.getAllProvincePeople();
    }
}
